package com.haisen.dataobject.dto;

import com.haisen.dataobject.entity.ItemParamGroup;
import com.haisen.dataobject.entity.ItemParamKey;
import lombok.Data;

import java.util.List;

@Data
public class ItemParamGroupDto {

    private Long id;
    private String groupName;
    private Long itemCatId;
    private String itemCatName;
    private String itemKeyIds;
   // private List<Long> itemKeyList;
    private List<ItemParamKey> itemKeyList;
    private String itemKeyNames;

    public ItemParamGroupDto(ItemParamGroup itemParamGroup) {
        this.id = itemParamGroup.getId();
        this.groupName = itemParamGroup.getGroupName();
        this.itemCatId = itemParamGroup.getItemCatId();
        this.itemCatName = itemParamGroup.getItemCatName();
        this.itemKeyIds = itemParamGroup.getItemKeyIds();
        this.itemKeyList = itemParamGroup.getItemKeyList();
    }
}
